package com.jp.knowledge.view.maintab;

import android.content.Context;

import com.jp.knowledge.R;

/**
 * Created by 528787067@qq.com on 2017/7/20.
 */

public class MainTab2 extends MainTab1 {

	public MainTab2(Context context) {
		super(context);
	}

	@Override
	protected void init() {
		super.init();
		tabTitle.setText("岗位知识");
	}

	@Override
	public void selectState() {
		tabIcon.setImageResource(R.mipmap.bottombar_repository_blue);
		tabTitle.setTextColor(getContext().getResources().getColor(R.color.theme_color));
	}

	@Override
	public void unselectState() {
		tabIcon.setImageResource(R.mipmap.bottombar_repository);
		tabTitle.setTextColor(getContext().getResources().getColor(R.color.font_gray_deep));
	}
}
